package com.bdjk.bdmw.InfoGath.exception;

/**
 * @author hy
 * 业务异常，需要处理，所以继承Exception
 */
public class BusinessException extends Exception
{
    /**
     * 自动生成序列化序列号
     */
    private static final long serialVersionUID = 6598494457085500355L;
    /**
     * 异常code描述,用于记录日志
     */
    private String code;
    /**
     * 记录参数信息
     */
    private Object param;

    public BusinessException()
    {
        super();
    }

    public BusinessException(String message)
    {
        super(message);
    }

    public BusinessException(String code, String message)
    {
        super(message);
        this.code = code;
    }
    
    

    public BusinessException(String code, Object param,String message)
    {
        super(message);
        this.code = code;
        this.param = param;
    }

    public BusinessException(Throwable cause)
    {
        super(cause);
    }

    public BusinessException(String message, Throwable cause)
    {
        super(message, cause);
    }

    public BusinessException(String code, String message, Throwable cause)
    {
        super(message, cause);
        this.code = code;
    }

    public String getCode()
    {
        return code;
    }

    public void setCode(String code)
    {
        this.code = code;
    }

    public Object getParam()
    {
        return param;
    }

    public void setParam(Object param)
    {
        this.param = param;
    }
    
    

}